package com.workman.model.exception;

/**
 * 异常枚举
 */
public enum ApplicationExceptionEnum {


    USER_ALREADY_REG(401,"该用户已经注册"),
    REQUEST_NULL(400, "请求有错误"),
    DATA_ERROR(400, "数据异常")
    ;




    ApplicationExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
